<?php 

include "scripts/connectDB.php";

$res = mysql_query("SELECT * FROM map ORDER BY map ASC")
or die("Invalid query: " . mysql_query());
echo '<select name="map_id">';
echo '<option value="map_id">Velg map</option>';

while ($row = mysql_fetch_assoc($res)) {
$map_id = $row['map_id'];
$map = $row['map'];
echo "<option value='$map_id'>$map</option>";
}
echo '</select>';
?>

